<?php
class demo{
	public $vars=[];
	public function __set($name,$value)
	{

	}
}

$obj = new Demo;
$obj->a=12;

unset($obj->a);